package com.aurora.jobHandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class AuroraJobHandler {

    private static Logger logger = LoggerFactory.getLogger(AuroraJobHandler.class);

    @XxlJob("auroraJobHandler")
    public ReturnT<String> lessExpireSchoolFileJob(String param) {
        logger.info("正在执行定时任务！！！");
        //获取传参
        String jobParam = XxlJobHelper.getJobParam();
        logger.info("获取参数:{}", jobParam);
        return ReturnT.SUCCESS;
    }
}
